package com.bigger.arch.app.web;

import com.bigger.arch.app.web.intercept.BiggerInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
public class BiggerMvcAppConfig extends WebMvcConfigurationSupport {
    @Override
    protected void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new BiggerInterceptor()).addPathPatterns("/demo/index");
        super.addInterceptors(registry);
    }
}
